#pragma once
#include<iostream>

using std::cout;
using std::endl;

class Date
{
public:
	Date(int year = 1900,int month = 1,int day = 1)//默认构造函数
	{
		_year = year;
		_month = month;
		_day = day;
	}
	Date(const Date& d);//拷贝构造函数
	void Dateprint();
	int GetMonthDay(int year, int month);
	Date& operator=(const Date& d);//赋值重载运算符
	bool operator>(Date& d);
	bool operator==(Date& d);
	bool operator>=(Date& d);
	bool operator<(Date& d);
	bool operator<=(Date& d);
	bool operator!=(Date& d);
	Date& operator+=(int day);
	Date operator+(int day);
	Date& operator-=(int day);
	Date operator-(int day);
	Date& operator++();//前置加加
	Date operator++(int);//后置加加
private:
	int _year;
	int _month;
	int _day;
};
